package com._520it.wms.mapper;

import com._520it.wms.domain.Employee;
import com._520it.wms.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Employee record);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    int updateByPrimaryKey(Employee record);

    int queryForCount(QueryObject qo);

    List<Employee> queryForList(QueryObject qo);

    void insertRelactionWithRole(@Param("empId") Long empId, @Param("roleId" )Long roleId);

    void deleteRelationWithRole(Long id);

    Employee queryByUsernameAndpassword(@Param("username") String username, @Param("password") String password);

    List<String> queryPermissionListByEmpId(Long empId);

    void batchDelete(Long[] ids);

    Employee queryByName(String username);
}